import { http } from "@/utils/http";
import { baseUrlApi } from "../utils";

//获取模块数据
type moduleList = {
  data: {
    list: [];
    pageCount: number;
    pageIndex: number;
    pageSize: number;
    totalCount: number;
  };
  status: number;
  success: boolean;
  msg: string;
};

//获取补时数据
export const GetStoppage = (data?: Object) => {
  return http.request<moduleList>("post", baseUrlApi("/Stoppage/GetStoppage"), {
    data
  });
};

//添加补时数据
export const GetStoppageSave = (data?: Object) => {
  return http.request<moduleList>("post", baseUrlApi("/Stoppage/Save"), {
    data
  });
};
